package com.example.demo.controller;

import com.example.demo.service.Hello;
import com.example.demo.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class My {
    @Resource
    private MyService myService;
    @RequestMapping("/hello")
    public String hello(){
        return "123";
    }
}
